package hikari.persistence.handlersimpl;

import com.gooddies.wiring.annotations.Wire;
import com.gooddies.wiring.annotations.WiringComponent;
import hikari.managers.Manager3D;
import hikari.objects3d.Basic3dObject;
import hikari.objects3d.light.ConeLight3dObject;
import hikari.objects3d.light.Light3dObject;
import hikari.persistence.file.FileSection;
import hikari.persistence.persisthandlers.IPersistantObject3dReadHandler;
import hikari.persistence.persisthandlers.PersistantHandler;
import java.io.IOException;
import org.swig.jirr.ISceneManager;

@WiringComponent(singleton = true, lazy = true)
@PersistantHandler(sectionName = "coneLight")
public class ConeLightLoadHandler implements IPersistantObject3dReadHandler {

    @Wire
    private Manager3D manager3D;

    private ConeLightLoadHandler() {
    }

    
    
    @Override
    public Basic3dObject read(ISceneManager sceneManager, Basic3dObject object, FileSection section) throws IOException {
        Light3dObject light = new ConeLight3dObject(manager3D.getSceneManager());
        return light;
    }
}